package com.qn.login;

import com.qn.enums.LoginType;

public class LoginFactory {
    public static LoginAbstract getLoginInstance(LoginType loginType) {
        switch (loginType) {
            case APP:
                return new AppLoginService();
            case ADMIN:
                return new AdminLoginService();
            case WX:
                return new WxLoginService();
            default:
                return null;
        }
    }
}
